﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace SQL2Entity
{
    [XmlRoot("Templates")]
    public class EntityTemplates
    {
        [XmlElement("Template")]
        public List<EntityTemplate> Templates;
    }

    [XmlRoot("Template")]
    public class EntityTemplate
    {
        [XmlAttribute("Name")]
        public string TemplateName;

        [XmlElement("Item")]
        public List<EntityItem> Items;
    }

    [XmlRoot("Item")]
    public class EntityItem
    {
        [XmlAttribute("Section")]
        public String Section;

        [XmlElement("Code")]
        public string Code;
    }
}
